<?php
$vocName = 'Category';
$voc = $this->vocabulary;
if (is_object($voc))
{
    $vocName = $voc->name;
}

$first_voc_id = '';
$first_voc = Vocabulary::model()->find(array('order'=>'name ASC','condition'=>'module=:module','params'=>array(':module'=>$module)));
if(!is_null($first_voc))
    $first_voc_id = $first_voc->id;
    
$this->breadcrumbs = array(); 
$this->breadcrumbs[$module] = array('/Admin/term/index','module'=>$module,'type'=>$first_voc_id);
$this->breadcrumbs[$vocName] = array('/Admin/term/index','module'=>$module,'type'=>(!is_null($voc) ? $voc->id : ''));
$this->breadcrumbs[] = $model->id ? 'Update' : 'Create';

$this->menu=array(
);
?>

<h1>Edit Term <?php echo $model->id; ?></h1>

<?php echo $this->renderPartial('_form', array('model'=>$model,'v'=>$v,'module'=>$module, 'property'=>$property,'propertyModule'=>$propertyModule,'propertyClassName'=>$propertyClassName)); ?>
